package com.lswms.controller;

import com.lswms.annotation.Login;
import com.lswms.annotation.LoginUser;
import com.lswms.common.page.PageInfo;
import com.lswms.common.page.PageRequest;
import com.lswms.common.utils.Result;
import com.lswms.common.validator.ValidatorUtils;
import com.lswms.dto.vo.req.QuerySignInfoReq;
import com.lswms.dto.vo.req.SaveDataReq;
import com.lswms.dto.vo.req.SignListReq;
import com.lswms.dto.vo.req.SignReq;
import com.lswms.dto.vo.resp.LotteryInfoResp;
import com.lswms.dto.vo.resp.LotteryListResp;
import com.lswms.dto.vo.resp.QuerySignDetailResp;
import com.lswms.dto.vo.resp.SignListResp;
import com.lswms.entity.YnUserEntity;
import com.lswms.service.YnLotteryRecordService;
import com.lswms.service.YnLotteryService;
import com.lswms.service.YnLotteryTicketActivityService;
import com.lswms.service.YnLotteryTicketResultService;
import com.lswms.service.YnSignRecordService;
import com.lswms.service.YnSignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.servlet.http.HttpServletRequest;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import springfox.documentation.annotations.ApiIgnore;

import com.alibaba.fastjson.JSON;

/**
 * 添加彩票数据接口
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-05-06
 */
@RestController
@RequestMapping("/api/ticketData")
@Api(tags="添加彩票数据")
@Slf4j
public class SystemTicketController {

	@Autowired
	private YnLotteryTicketResultService ynLotteryTicketResultService;
	

	
    /**
     * 添加数据
     * @param dto
     * @param request
     * @return
     */
    @PostMapping("saveData")
    @ApiOperation("添加数据")
    public Result<Object> saveData(@RequestBody SaveDataReq req,HttpServletRequest request){
    	ynLotteryTicketResultService.saveTicketResult(req);
        return new Result<Object>();
    }

}